﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace QuanLyThuNgan
{
    public class ThuocNoiTruMstCTL
    {
        ThuocNoiTruMstDAO data = new ThuocNoiTruMstDAO();
        
        public string m_Insert_(string sobn, string ngay, string Makho, int sotien, string madvpk, string chandoan, int idnguoinhap, string yymm, string SoHS, string SoNhapvien, int tientra, string tungay, string denngay, string HA, int Mach, string ghichu, int NhietDo, string thetrang, int idbacsi, string GhiChuUni, string TheTrangUni,string ChandoanUni,int doituong)
        {
            return data.m_Insert_(sobn, ngay, Makho, sotien, madvpk, chandoan, idnguoinhap, yymm, SoHS, SoNhapvien, tientra, tungay, denngay, HA, Mach, ghichu, NhietDo, thetrang, idbacsi, GhiChuUni, TheTrangUni, ChandoanUni,doituong);
        }
        public string m_Delete_(string sobn)
        {
            return data.m_Delete_(sobn);
        }
        public string m_Update_(string sobn, string ngay, string Makho, int sotien, string madvpk, string chandoan, int idnguoinhap, string yymm, string SoHS, string SoNhapvien, int tientra, string tungay, string denngay, string HA, int Mach, string ghichu, int NhietDo, string thetrang, int idbacsi, string GhiChuUni, string TheTrangUni, string ChandoanUni, int doituong)
        {
            return data.m_Update_(sobn, ngay, Makho, sotien, madvpk, chandoan, idnguoinhap, yymm, SoHS, SoNhapvien, tientra, tungay, denngay, HA, Mach, ghichu, NhietDo, thetrang, idbacsi, GhiChuUni, TheTrangUni, ChandoanUni,doituong);
        }
        public DataTable m_soluongtonkhonoitru(string madv)
        {
            return data.m_soluongtonkhonoitru(madv);//slton,ksslgx
        }

        public DataTable m_kholtmp_toapk()
        {
            return data.m_kholtmp_toapk();//slg
        }
        public object m_KiemTraXuatVien(string sonv)
        {
            return data.m_KiemTraXuatVien(sonv);//sonhapvien
        }
        public DataTable m_UpdateSoLuongTon_kholtmp_toapk(string sobn, int bdid)
        {
            return data.m_UpdateSoLuongTon_kholtmp_toapk(sobn, bdid);
        }
        public object m_KiemTraTraThuoc(string sophieu)
        {
            return data.m_KiemTraTraThuoc(sophieu);//= true la qua thoi gian cho trả lại thuốc
        }
        public string m_Update_TraThuoc(string sobn, string sonhapvien, int tientra, int idlydotra, int idtrathuoc, int idbstra)
        {
            return data.m_Update_TraThuoc(sobn, sonhapvien, tientra, idlydotra, idtrathuoc, idbstra);
        }
    }
}
